package com.harry.mapper;

import com.harry.pojo.MedicineRepo;
import com.harry.pojo.ScheduleRecord;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.sql.Timestamp;
import java.util.List;

@Mapper
@Repository
public interface DoctorMapper
{
    Integer getDoctorId(String open_id);
    void setSchedule(int doctor_id, Timestamp start_time, int capacity);
    ScheduleRecord getSingleSchedule(int doctor_id, Timestamp start_time);
    List<ScheduleRecord> getSchedule(int doctorId);
    List<MedicineRepo> getMedicineRepo();
    void addMedicine(int medicine_id, int amount);
}
